import request from '@/utils/request'

const roleAssociatedPermissionsApi = {
  deleteByRoleIdAndPermissionsId: '/picachoframework/role-associated-permissions/deleteByRoleIdAndPermissionsId',
  addRoleAssociatedPermissions: '/picachoframework/role-associated-permissions/addRoleAssociatedPermissions'
}

export function deleteByRoleIdAndPermissionsId (roleIdAndPermissionsId) {
  return request({
    url: roleAssociatedPermissionsApi.deleteByRoleIdAndPermissionsId,
    method: 'post',
    data: roleIdAndPermissionsId
  })
}

export function addRoleAssociatedPermissions (roleIdAndPermissionsId) {
  return request({
    url: roleAssociatedPermissionsApi.addRoleAssociatedPermissions,
    method: 'post',
    data: roleIdAndPermissionsId
  })
}
